<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			p,ul{
				border: 1px solid red;
			}
			ul p,h1,h2{
				background: red;
			}
			body>p,div{
				background: #0000FF;
			}
			.active~p,ul{
				background:yellow;
			}
			ul>li{
				background: red;
			}
		</style>
	</head>
	<body>
		<p class="active">1</p>
		<h3>我</h3>
		<p>2</p>
		<p>3</p>
		<ul>
			<li>
				<p>4</p>
			</li>
			<li>
				<p>5</p>
			</li>
			<li>
				<p>6</p>
			</li>
		</ul>
		<div>
			<p>5</p>
		</div>
	</body>
</html>
